<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>LTE-UNB: Results/Results.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">LTE-UNB
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">Results/Results.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_results_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00018"></a>00018 <span class="preprocessor">#ifndef _Results_h_</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span><span class="preprocessor">#define _Results_h_</span>
<a name="l00020"></a>00020 <span class="preprocessor"></span>
<a name="l00021"></a>00021 <span class="preprocessor">#include &lt;itpp/itbase.h&gt;</span>
<a name="l00022"></a>00022 
<a name="l00023"></a>00023 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00024"></a>00024 <span class="preprocessor">#include &lt;queue&gt;</span>
<a name="l00025"></a>00025 
<a name="l00026"></a>00026 <span class="keyword">using namespace </span>itpp;
<a name="l00027"></a>00027 <span class="keyword">using namespace </span>std;
<a name="l00028"></a>00028 
<a name="l00029"></a>00029 <span class="keyword">namespace </span>Results
<a name="l00030"></a>00030 {
<a name="l00031"></a>00031 
<a name="l00036"></a><a class="code" href="class_results_1_1_results.html">00036</a> <span class="keyword">class </span><a class="code" href="class_results_1_1_results.html">Results</a>
<a name="l00037"></a>00037 {
<a name="l00038"></a>00038    <span class="keyword">public</span>:
<a name="l00039"></a>00039            
<a name="l00044"></a>00044       ~<a class="code" href="class_results_1_1_results.html">Results</a>();
<a name="l00045"></a>00045       
<a name="l00050"></a>00050       <span class="keyword">static</span> <a class="code" href="class_results_1_1_results.html">Results</a>* getInstance();
<a name="l00051"></a>00051 
<a name="l00056"></a>00056       <span class="keywordtype">void</span> setParameters();
<a name="l00057"></a>00057       
<a name="l00062"></a>00062       <span class="keywordtype">void</span> clear();
<a name="l00063"></a>00063       
<a name="l00067"></a>00067       <span class="keywordtype">void</span> initialize();
<a name="l00068"></a>00068       
<a name="l00072"></a>00072       <span class="keywordtype">void</span> initializeDrop();
<a name="l00073"></a>00073       
<a name="l00077"></a>00077       <span class="keywordtype">void</span> initializeSimulation();
<a name="l00078"></a>00078       
<a name="l00082"></a>00082       <span class="keywordtype">void</span> addUserId( <span class="keywordtype">int</span> userId );
<a name="l00083"></a>00083       
<a name="l00087"></a>00087       <span class="keywordtype">int</span> getNumberUsers();
<a name="l00088"></a>00088       
<a name="l00092"></a>00092       <span class="keywordtype">int</span> getUserId( <span class="keywordtype">int</span> index );
<a name="l00093"></a>00093       
<a name="l00097"></a>00097       <span class="keywordtype">void</span> finalizeDrop();
<a name="l00098"></a>00098       
<a name="l00102"></a>00102       <span class="keywordtype">void</span> finalizeSimulation();
<a name="l00103"></a>00103       
<a name="l00108"></a>00108       <span class="keywordtype">double</span> getAverageUserRawRate();
<a name="l00109"></a>00109       
<a name="l00114"></a>00114       <span class="keywordtype">double</span> getAverageUserEffectiveRate();
<a name="l00115"></a>00115       
<a name="l00120"></a>00120       <span class="keywordtype">double</span> getAverageSINR();
<a name="l00121"></a>00121       
<a name="l00126"></a>00126       <span class="keywordtype">double</span> getAverageSINR_dB();
<a name="l00127"></a>00127       
<a name="l00131"></a>00131       <span class="keywordtype">void</span> storeMCS( <span class="keywordtype">int</span> MCS );
<a name="l00132"></a>00132       
<a name="l00136"></a>00136       <span class="keywordtype">int</span> getMCSHistogram( <span class="keywordtype">int</span> MCS );
<a name="l00137"></a>00137       
<a name="l00142"></a>00142       <span class="keywordtype">double</span> getMCSPercentage( <span class="keywordtype">int</span> MCS );
<a name="l00143"></a>00143       
<a name="l00147"></a>00147       <span class="keywordtype">void</span> displayResults();
<a name="l00148"></a>00148       
<a name="l00152"></a>00152       <span class="keywordtype">void</span> saveDropResults();
<a name="l00153"></a>00153       
<a name="l00157"></a>00157       <span class="keywordtype">void</span> saveSimulationResults();
<a name="l00158"></a>00158       
<a name="l00162"></a>00162       <span class="keywordtype">void</span> storeSuccess();
<a name="l00163"></a>00163       
<a name="l00167"></a>00167       <span class="keywordtype">void</span> storeFailure();
<a name="l00168"></a>00168       
<a name="l00172"></a>00172       <span class="keywordtype">double</span> getPercentageSuccess();
<a name="l00173"></a>00173       
<a name="l00178"></a>00178       <span class="keywordtype">double</span> getPercentageFailure();
<a name="l00179"></a>00179       
<a name="l00184"></a>00184       <span class="keywordtype">void</span> storeSINR( <span class="keyword">const</span> <span class="keywordtype">double</span> sinr );
<a name="l00185"></a>00185       
<a name="l00189"></a>00189       <span class="keywordtype">void</span> storeDistance( <span class="keyword">const</span> <span class="keywordtype">double</span> distance );
<a name="l00190"></a>00190       
<a name="l00194"></a>00194       <span class="keywordtype">void</span> storeSINR( <span class="keyword">const</span> <span class="keywordtype">double</span> sinr,
<a name="l00195"></a>00195                       <span class="keyword">const</span> <span class="keywordtype">double</span> frequency );
<a name="l00196"></a>00196       
<a name="l00200"></a>00200       <span class="keywordtype">void</span> saveSINRCDF();
<a name="l00201"></a>00201       
<a name="l00206"></a>00206       <span class="keywordtype">void</span> saveDistanceCDF();
<a name="l00211"></a>00211       <span class="keywordtype">void</span> generateCDFEffectiveUserRate();
<a name="l00216"></a>00216        <span class="keywordtype">void</span> creategraph();
<a name="l00217"></a>00217          
<a name="l00218"></a>00218    <span class="keyword">private</span>:
<a name="l00219"></a>00219       
<a name="l00224"></a>00224       <a class="code" href="class_results_1_1_results.html">Results</a>();
<a name="l00225"></a>00225       
<a name="l00230"></a>00230       <span class="keyword">static</span> <a class="code" href="class_results_1_1_results.html">Results</a>* instance_;
<a name="l00231"></a>00231       
<a name="l00236"></a>00236       <span class="keywordtype">char</span>* dropResultsFile_;
<a name="l00237"></a>00237       
<a name="l00242"></a>00242       <span class="keywordtype">char</span>* simulationResultsFile_;
<a name="l00243"></a>00243       
<a name="l00248"></a>00248       ivec userIds_;
<a name="l00249"></a>00249       
<a name="l00254"></a>00254       ivec eNodeBIds_;
<a name="l00255"></a>00255       
<a name="l00260"></a>00260       <span class="keywordtype">int</span> totalRawBitsPerDrop_;
<a name="l00261"></a>00261       
<a name="l00266"></a>00266       <span class="keywordtype">double</span> totalEffectiveBitsPerDrop_;
<a name="l00267"></a>00267       
<a name="l00272"></a>00272       <span class="keywordtype">int</span> eNodeBRawBitsPerDrop_;
<a name="l00273"></a>00273       
<a name="l00278"></a>00278       <span class="keywordtype">double</span> eNodeBEffectiveBitsPerDrop_;
<a name="l00279"></a>00279       
<a name="l00284"></a>00284       <span class="keywordtype">double</span> eNodeBRawRate_;
<a name="l00285"></a>00285       
<a name="l00290"></a>00290       <span class="keywordtype">double</span> eNodeBEffectiveRate_;
<a name="l00291"></a>00291       
<a name="l00296"></a>00296       <span class="keywordtype">double</span> simlationRawRate_;
<a name="l00297"></a>00297       
<a name="l00302"></a>00302       <span class="keywordtype">double</span> simlationEffectiveRate_;
<a name="l00303"></a>00303       
<a name="l00308"></a>00308       <span class="keywordtype">double</span> updateTime_;
<a name="l00309"></a>00309       
<a name="l00314"></a>00314       <span class="keywordtype">double</span> averageSINR_;
<a name="l00315"></a>00315       
<a name="l00320"></a>00320       <span class="keywordtype">int</span> numberSINR_;
<a name="l00321"></a>00321       
<a name="l00326"></a>00326       ivec MCSHistogramPerDrop_;
<a name="l00327"></a>00327       
<a name="l00332"></a>00332       vec MCSPercentage_;
<a name="l00333"></a>00333       
<a name="l00338"></a>00338       <span class="keywordtype">int</span> totalMCSsPerDrop_;
<a name="l00339"></a>00339       
<a name="l00344"></a>00344       <span class="keywordtype">int</span> MCSNotUsedPerDrop_;
<a name="l00345"></a>00345       
<a name="l00350"></a>00350       <span class="keywordtype">double</span> percentageMCSNotUsed_;
<a name="l00351"></a>00351       
<a name="l00356"></a>00356       <span class="keywordtype">int</span> numberSimulations_;
<a name="l00357"></a>00357       
<a name="l00362"></a>00362       <span class="keywordtype">int</span> numberDrops_;
<a name="l00363"></a>00363       
<a name="l00368"></a>00368       <span class="keywordtype">int</span> simulationIndex_;
<a name="l00369"></a>00369       
<a name="l00374"></a>00374       <span class="keywordtype">int</span> dropIndex_;
<a name="l00375"></a>00375       
<a name="l00380"></a>00380       <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> successPerDrop_;
<a name="l00381"></a>00381       
<a name="l00386"></a>00386       <span class="keywordtype">double</span> percentageSuccess_;
<a name="l00387"></a>00387       
<a name="l00392"></a>00392       <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> failurePerDrop_;
<a name="l00393"></a>00393       
<a name="l00398"></a>00398       <span class="keywordtype">double</span> percentageFailure_;
<a name="l00399"></a>00399       
<a name="l00404"></a>00404       <span class="keywordtype">int</span> CQIReportDelay_;
<a name="l00405"></a>00405       
<a name="l00410"></a>00410       ivec sinrHistogram_;
<a name="l00411"></a>00411       
<a name="l00416"></a>00416       ivec distanceHistogram_;
<a name="l00417"></a>00417       
<a name="l00422"></a>00422       <span class="keywordtype">double</span> oldTime_;
<a name="l00423"></a>00423       
<a name="l00428"></a>00428       <span class="keywordtype">int</span> initialUsers_;
<a name="l00429"></a>00429       
<a name="l00434"></a>00434       <span class="keywordtype">int</span> finalUsers_;
<a name="l00435"></a>00435       
<a name="l00440"></a>00440       <span class="keywordtype">int</span> userStep_;
<a name="l00441"></a>00441       
<a name="l00446"></a>00446       <span class="keywordtype">int</span> numberUsers_;
<a name="l00447"></a>00447      
<a name="l00452"></a>00452       <span class="keywordtype">int</span> Direction_;
<a name="l00458"></a>00458     vec  cdfEffectiveUserRateX_;
<a name="l00464"></a>00464     vec  cdfEffectiveUserRateY_;
<a name="l00465"></a>00465 
<a name="l00466"></a>00466    
<a name="l00467"></a>00467 };
<a name="l00468"></a>00468 
<a name="l00469"></a>00469 };
<a name="l00470"></a>00470 
<a name="l00471"></a>00471 <span class="keyword">inline</span>
<a name="l00472"></a>00472 <span class="keywordtype">void</span>
<a name="l00473"></a>00473 <a class="code" href="class_results_1_1_results.html#aea8decccc7858d71d4c9aa0eff71a971">Results::</a>
<a name="l00474"></a><a class="code" href="class_results_1_1_results.html#aea8decccc7858d71d4c9aa0eff71a971">00474</a> <a class="code" href="class_results_1_1_results.html#aea8decccc7858d71d4c9aa0eff71a971">Results::addUserId</a>( <span class="keywordtype">int</span> userId )
<a name="l00475"></a>00475 {
<a name="l00476"></a>00476    <span class="keywordtype">int</span> s = userIds_.size();
<a name="l00477"></a>00477    userIds_.set_size( s + 1, <span class="keyword">true</span> );
<a name="l00478"></a>00478    userIds_( s ) = userId;
<a name="l00479"></a>00479 }
<a name="l00480"></a>00480 
<a name="l00481"></a>00481 <span class="comment">//------------------------------------------------------------------------------</span>
<a name="l00482"></a>00482 
<a name="l00483"></a>00483 <span class="keyword">inline</span>
<a name="l00484"></a>00484 <span class="keywordtype">int</span>
<a name="l00485"></a>00485 <a class="code" href="class_results_1_1_results.html#a39edde11f389faa2f85b3d651cc66984">Results::</a>
<a name="l00486"></a><a class="code" href="class_results_1_1_results.html#a39edde11f389faa2f85b3d651cc66984">00486</a> <a class="code" href="class_results_1_1_results.html#a39edde11f389faa2f85b3d651cc66984">Results::getNumberUsers</a>()
<a name="l00487"></a>00487 {
<a name="l00488"></a>00488    <span class="keywordflow">return</span> userIds_.size();
<a name="l00489"></a>00489 }
<a name="l00490"></a>00490 
<a name="l00491"></a>00491 <span class="comment">//------------------------------------------------------------------------------</span>
<a name="l00492"></a>00492 
<a name="l00493"></a>00493 <span class="keyword">inline</span>
<a name="l00494"></a>00494 <span class="keywordtype">int</span>
<a name="l00495"></a>00495 <a class="code" href="class_results_1_1_results.html#a73beab9326f0a610f2c10f46c92f0dd4">Results::</a>
<a name="l00496"></a><a class="code" href="class_results_1_1_results.html#a73beab9326f0a610f2c10f46c92f0dd4">00496</a> <a class="code" href="class_results_1_1_results.html#a73beab9326f0a610f2c10f46c92f0dd4">Results::getUserId</a>( <span class="keywordtype">int</span> index )
<a name="l00497"></a>00497 {
<a name="l00498"></a>00498    <span class="keywordtype">int</span> i = -1;
<a name="l00499"></a>00499    <span class="keywordflow">if</span>( index &lt; userIds_.size() )
<a name="l00500"></a>00500    {
<a name="l00501"></a>00501       i = userIds_( index );
<a name="l00502"></a>00502    }
<a name="l00503"></a>00503    <span class="keywordflow">else</span>
<a name="l00504"></a>00504    {
<a name="l00505"></a>00505       it_error(<span class="stringliteral">&quot;Results: index out of range&quot;</span>);
<a name="l00506"></a>00506    }
<a name="l00507"></a>00507    <span class="keywordflow">return</span> i;
<a name="l00508"></a>00508 }
<a name="l00509"></a>00509 
<a name="l00510"></a>00510 <span class="comment">//------------------------------------------------------------------------------</span>
<a name="l00511"></a>00511 
<a name="l00512"></a>00512 <span class="keyword">inline</span>
<a name="l00513"></a>00513 <span class="keywordtype">double</span>
<a name="l00514"></a>00514 <a class="code" href="class_results_1_1_results.html#a3a7347d9f6fd0bf92f4756e9f80a2266">Results::</a>
<a name="l00515"></a><a class="code" href="class_results_1_1_results.html#a3a7347d9f6fd0bf92f4756e9f80a2266">00515</a> <a class="code" href="class_results_1_1_results.html#a3a7347d9f6fd0bf92f4756e9f80a2266">Results::getAverageUserRawRate</a>()
<a name="l00516"></a>00516 {
<a name="l00517"></a>00517    
<a name="l00518"></a>00518    <span class="comment">//cout &lt;&lt; &quot;R: &quot;&lt;&lt; TotalRawBits_ &lt;&lt; endl;</span>
<a name="l00519"></a>00519    <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span><span class="keywordtype">double</span><span class="keyword">&gt;</span>( totalRawBitsPerDrop_ ) 
<a name="l00520"></a>00520       / static_cast&lt;double&gt;( userIds_.size() ) 
<a name="l00521"></a>00521       / updateTime_;
<a name="l00522"></a>00522       
<a name="l00523"></a>00523       
<a name="l00524"></a>00524 }
<a name="l00525"></a>00525 
<a name="l00526"></a>00526 <span class="comment">//------------------------------------------------------------------------------</span>
<a name="l00527"></a>00527 
<a name="l00528"></a>00528 <span class="keyword">inline</span>
<a name="l00529"></a>00529 <span class="keywordtype">double</span>
<a name="l00530"></a>00530 <a class="code" href="class_results_1_1_results.html#a8663c27f9f4e9639f75a497b10241714">Results::</a>
<a name="l00531"></a><a class="code" href="class_results_1_1_results.html#a8663c27f9f4e9639f75a497b10241714">00531</a> <a class="code" href="class_results_1_1_results.html#a8663c27f9f4e9639f75a497b10241714">Results::getAverageUserEffectiveRate</a>()
<a name="l00532"></a>00532 {
<a name="l00533"></a>00533    <span class="comment">//cout &lt;&lt; &quot;E: &quot;&lt;&lt; TotalEffectiveBits_ &lt;&lt; endl;</span>
<a name="l00534"></a>00534    <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span><span class="keywordtype">double</span><span class="keyword">&gt;</span>( totalEffectiveBitsPerDrop_ ) 
<a name="l00535"></a>00535       / static_cast&lt;double&gt;( userIds_.size() )
<a name="l00536"></a>00536       / updateTime_;
<a name="l00537"></a>00537       
<a name="l00538"></a>00538       
<a name="l00539"></a>00539 }
<a name="l00540"></a>00540 
<a name="l00541"></a>00541 <span class="comment">//------------------------------------------------------------------------------</span>
<a name="l00542"></a>00542 
<a name="l00543"></a>00543 <span class="keyword">inline</span>
<a name="l00544"></a>00544 <span class="keywordtype">double</span>
<a name="l00545"></a>00545 <a class="code" href="class_results_1_1_results.html#a7be09f4c54c20f1279fc6ae46fca4bf5">Results::</a>
<a name="l00546"></a><a class="code" href="class_results_1_1_results.html#a7be09f4c54c20f1279fc6ae46fca4bf5">00546</a> <a class="code" href="class_results_1_1_results.html#a7be09f4c54c20f1279fc6ae46fca4bf5">Results::getAverageSINR</a>()
<a name="l00547"></a>00547 {
<a name="l00548"></a>00548    <span class="comment">//cout &lt;&lt;&quot;qwe&quot;&lt;&lt;averageSINR_ / 40 &lt;&lt; endl;</span>
<a name="l00549"></a>00549    <span class="comment">//cout &lt;&lt; &quot;number: &quot;&lt;&lt; numberSINR_;</span>
<a name="l00550"></a>00550    <span class="keywordflow">return</span> averageSINR_ / numberSINR_;
<a name="l00551"></a>00551 }
<a name="l00552"></a>00552 
<a name="l00553"></a>00553 <span class="comment">//------------------------------------------------------------------------------</span>
<a name="l00554"></a>00554 
<a name="l00555"></a>00555 <span class="keyword">inline</span>
<a name="l00556"></a>00556 <span class="keywordtype">double</span>
<a name="l00557"></a>00557 <a class="code" href="class_results_1_1_results.html#a3dede600f88cb5845d99ae88f5308c45">Results::</a>
<a name="l00558"></a><a class="code" href="class_results_1_1_results.html#a3dede600f88cb5845d99ae88f5308c45">00558</a> <a class="code" href="class_results_1_1_results.html#a3dede600f88cb5845d99ae88f5308c45">Results::getAverageSINR_dB</a>()
<a name="l00559"></a>00559 {
<a name="l00560"></a>00560    
<a name="l00561"></a>00561    <span class="keywordflow">return</span> 10 * log10( getAverageSINR() );
<a name="l00562"></a>00562 }
<a name="l00563"></a>00563 
<a name="l00564"></a>00564 <span class="comment">//------------------------------------------------------------------------------</span>
<a name="l00565"></a>00565 
<a name="l00566"></a>00566 <span class="keyword">inline</span>
<a name="l00567"></a>00567 <span class="keywordtype">double</span>
<a name="l00568"></a>00568 <a class="code" href="class_results_1_1_results.html#a69a2ee632006f34ee05e4a8affbbdb92">Results::</a>
<a name="l00569"></a><a class="code" href="class_results_1_1_results.html#a69a2ee632006f34ee05e4a8affbbdb92">00569</a> <a class="code" href="class_results_1_1_results.html#a69a2ee632006f34ee05e4a8affbbdb92">Results::getMCSPercentage</a>( <span class="keywordtype">int</span> MCS )
<a name="l00570"></a>00570 { 
<a name="l00571"></a>00571    <span class="keywordflow">return</span> 100 * <span class="keyword">static_cast&lt;</span><span class="keywordtype">double</span><span class="keyword">&gt;</span> ( getMCSHistogram( MCS ) ) / 
<a name="l00572"></a>00572       static_cast&lt;double&gt;( totalMCSsPerDrop_ );
<a name="l00573"></a>00573 }
<a name="l00574"></a>00574 
<a name="l00575"></a>00575 <span class="comment">//------------------------------------------------------------------------------</span>
<a name="l00576"></a>00576 
<a name="l00577"></a>00577 <span class="keyword">inline</span>
<a name="l00578"></a>00578 <span class="keywordtype">double</span>
<a name="l00579"></a>00579 <a class="code" href="class_results_1_1_results.html#a75518d705ef6a0aab316cb4710e77789">Results::</a>
<a name="l00580"></a><a class="code" href="class_results_1_1_results.html#a75518d705ef6a0aab316cb4710e77789">00580</a> <a class="code" href="class_results_1_1_results.html#a75518d705ef6a0aab316cb4710e77789">Results::getPercentageSuccess</a>()
<a name="l00581"></a>00581 { 
<a name="l00582"></a>00582    <span class="keywordflow">return</span> 100.0 * <span class="keyword">static_cast&lt;</span><span class="keywordtype">double</span><span class="keyword">&gt;</span>( successPerDrop_ )
<a name="l00583"></a>00583           / static_cast&lt;double&gt;( successPerDrop_ + failurePerDrop_ );
<a name="l00584"></a>00584 }
<a name="l00585"></a>00585 
<a name="l00586"></a>00586 <span class="comment">//------------------------------------------------------------------------------</span>
<a name="l00587"></a>00587 
<a name="l00588"></a>00588 <span class="keyword">inline</span>
<a name="l00589"></a>00589 <span class="keywordtype">double</span>
<a name="l00590"></a>00590 <a class="code" href="class_results_1_1_results.html#a1b686f1217d9aa8bd02be37068bebe2f">Results::</a>
<a name="l00591"></a><a class="code" href="class_results_1_1_results.html#a1b686f1217d9aa8bd02be37068bebe2f">00591</a> <a class="code" href="class_results_1_1_results.html#a1b686f1217d9aa8bd02be37068bebe2f">Results::getPercentageFailure</a>()
<a name="l00592"></a>00592 { 
<a name="l00593"></a>00593    <span class="keywordflow">return</span> 100.0 - getPercentageSuccess();
<a name="l00594"></a>00594 }
<a name="l00595"></a>00595 
<a name="l00596"></a>00596 <span class="comment">//------------------------------------------------------------------------------</span>
<a name="l00597"></a>00597 
<a name="l00598"></a>00598 
<a name="l00599"></a>00599 
<a name="l00600"></a>00600 <span class="preprocessor">#endif</span>
</pre></div></div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Friends</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Thu Oct 25 2012 22:25:34 for LTE-UNB by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
